package com.mapull.primitive;

/**
 * @author Mapull
 * @date 2024-04-07
 */
public class SimpleShort {

    public static void main(String[] args) {
        short st = 1234;
        Short num = Short.valueOf(st);
        Short num1 = Short.valueOf("1234");
        int compare1 = num.compareTo(num1);
        System.out.println(compare1);
        Short num2 = Short.valueOf("666");
        int compare2 = num.compareTo(num2);
        System.out.println(compare2);
        Short num3 = Short.valueOf("7890");
        int compare3 = num.compareTo(num3);
        System.out.println(compare3);
    }
    public static void main11(String[] args) {
        Short num1 = Short.valueOf("110", 2);
        Short num2 = Short.valueOf("1F", 16);
        short num3 = Short.parseShort("110", 2);
    }
    public static void main10(String[] args) {
        short st = 1234;
        Short num = Short.valueOf(st);
        Short num1 = Short.valueOf("1234");
        System.out.println(num.equals(num1));
        System.out.println(num == num1);
    }

    public static void main9(String[] args) {
        Short num1 = new Short("123");
        short num = num1.shortValue();
        System.out.println(num1);
        System.out.println(num);
    }
    public static void main8(String[] args) {
        short num1 = Short.parseShort("110", 2);
        System.out.println(num1);
        short num2 = Short.parseShort("1F", 16);
        System.out.println(num2);
        short num3 = Short.parseShort("123", 8);
        System.out.println(num3);
        short num = Short.parseShort("89", 8);
    }
    public static void main7(String[] args) {
        short num = Short.parseShort("");
        short num1 = Short.parseShort(null);
        short num2 = Short.parseShort("123456789");
        short num3 = Short.parseShort("1024M");
    }

    public static void main6(String[] args) {
        short num1 = Short.parseShort("123");
        short num2 = Short.parseShort("-123");
        short num3 = Short.parseShort("+1234");
    }
    public static void main5(String[] args) {
        Short num1 = new Short("123");
        long num = num1.longValue();
        System.out.println(num1);
        System.out.println(num);
    }

    public static void main4(String[] args) {
        Short num1 = new Short("123");
        short st = 123;
        Short num2 = new Short(st);
        boolean bool = num1.equals(num2);
        System.out.println(bool);
    }

    public static void main3(String[] args) {
        Short num1 = new Short("123");
        double num = num1.doubleValue();
        System.out.println(num1);
        System.out.println(num);
    }
    public static void main2(String[] args) {
        short num1 = Short.MAX_VALUE;
        System.out.println(num1);
        short num2 = Short.MIN_VALUE;
        System.out.println(num2);
        int size = Short.SIZE;
        System.out.println(size);
        int bytes = Short.BYTES;
        System.out.println(bytes);
    }
    public static void main1(String[] args) {
        Short num1 = new Short("123");
        short st = 123;
        Short num2 = new Short(st);
    }
}
